package com.gilight.base.dao;

import com.gilight.base.dto.ColdCategoryDto;
import com.gilight.base.model.ColdCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shr
 * @since 2021-07-15
 */
@Repository
public interface ColdCategoryMapper extends BaseMapper<ColdCategory> {
    void addProductList(@Param("coldCategoryDto") ColdCategoryDto coldCategoryDto);
    void removeProduct(@Param("categoryId")Long categoryId,@Param("productId")Long productId);
    List<ColdCategoryDto> getCategoryList(@Param("zzjgId")Long zzjgId);
}
